﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Driver;

namespace Entities.Interface
{
    public interface IMember
    {
        Entities.Member GetById(ObjectId Id);

        IEnumerable<Entities.Member> GetByUserName(string username);

        IEnumerable<Entities.Member> GetMembers();

        IEnumerable<Entities.Member> FindAs(QueryDocument query);

        bool Update(Entities.Member args);

        void Insert(Entities.Member args);

        bool Delete(Entities.Member args);
    }
}
